package yuejian_07.yuejian_07.service;

import java.util.List;

import retrofit2.http.Query;
import yuejian_07.yuejian_07.javabean.Contest;
import retrofit2.Call;
import retrofit2.http.GET;



public interface ContestService {
    @GET("Contests/getContests")
    Call<List<Contest>> getAllContests();
    @GET("Contests/getContestInfo")
    Call<Contest> getContestById(
            @Query("contest_id") int contest_id
    );
    @GET("Contests/searchContest")
    Call<List<Contest>> getContestBySearch(
            @Query("search") String search
    );
}
